<?php
/**
 * Plugin from smarty project and adapted for jtpl
 * @package     jelix
 * @subpackage  jtpl_plugin
 * @version     $Id$
 */

/**
 * Type:        modifier
 * Name:        explode<br>
 * Purpose:     Return piece of tab
 * @param       string $_zInput de forme 190-PW0WS90-97544 => 190-97544
 * @return string
 */
function jtpl_modifier_common_explode ($_zInput)
{
    $tab1 = explode("-",$_zInput) ;
     if (count($tab1) == 3)
          return $tab1[0] . '-' . $tab1[2];
     
    return $_zInput ;

}

?>